<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: KVProperty类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_k_v_property-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">KVProperty类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>一个简单的属性列表类  
 <a href="class_k_v_property.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_k_v_property_8h_source.html">KVProperty.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2b962e470acd5e4f5c69232b0c5cdd18"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_k_v_property.html#a2b962e470acd5e4f5c69232b0c5cdd18">KVProperty</a> ()</td></tr>
<tr class="memdesc:a2b962e470acd5e4f5c69232b0c5cdd18"><td class="mdescLeft">&#160;</td><td class="mdescRight">属性表构造函数  <a href="#a2b962e470acd5e4f5c69232b0c5cdd18">更多...</a><br /></td></tr>
<tr class="separator:a2b962e470acd5e4f5c69232b0c5cdd18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7a2ed9ecf029cf60e9403e5b34d5053"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_k_v_property.html#ab7a2ed9ecf029cf60e9403e5b34d5053">~KVProperty</a> ()</td></tr>
<tr class="memdesc:ab7a2ed9ecf029cf60e9403e5b34d5053"><td class="mdescLeft">&#160;</td><td class="mdescRight">属性表析构函数  <a href="#ab7a2ed9ecf029cf60e9403e5b34d5053">更多...</a><br /></td></tr>
<tr class="separator:ab7a2ed9ecf029cf60e9403e5b34d5053"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d5407252192596dcf76e8b4c819ccd4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_k_v_property.html#a2d5407252192596dcf76e8b4c819ccd4">initWithFile</a> (const string fileName)</td></tr>
<tr class="memdesc:a2d5407252192596dcf76e8b4c819ccd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">从配置文件初始化属性表  <a href="#a2d5407252192596dcf76e8b4c819ccd4">更多...</a><br /></td></tr>
<tr class="separator:a2d5407252192596dcf76e8b4c819ccd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba54fbf360de68a40d5f5d320cde7e5b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_k_v_property.html#aba54fbf360de68a40d5f5d320cde7e5b">saveAsFile</a> (const string fileName)</td></tr>
<tr class="memdesc:aba54fbf360de68a40d5f5d320cde7e5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">保存属性表,此操作会重写并保存属性文件  <a href="#aba54fbf360de68a40d5f5d320cde7e5b">更多...</a><br /></td></tr>
<tr class="separator:aba54fbf360de68a40d5f5d320cde7e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2da1520428e305fa4142943762c10263"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_k_v_value.html">KVValue</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_k_v_property.html#a2da1520428e305fa4142943762c10263">operator[]</a> (string keyword)</td></tr>
<tr class="memdesc:a2da1520428e305fa4142943762c10263"><td class="mdescLeft">&#160;</td><td class="mdescRight">[]运算符重载  <a href="#a2da1520428e305fa4142943762c10263">更多...</a><br /></td></tr>
<tr class="separator:a2da1520428e305fa4142943762c10263"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2df711a6326ccf55831bd9624d159d57"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_k_v_property.html#a2df711a6326ccf55831bd9624d159d57">addProperty</a> (string keyword, <a class="el" href="class_k_v_value.html">KVValue</a> &amp;value)</td></tr>
<tr class="memdesc:a2df711a6326ccf55831bd9624d159d57"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加属性行  <a href="#a2df711a6326ccf55831bd9624d159d57">更多...</a><br /></td></tr>
<tr class="separator:a2df711a6326ccf55831bd9624d159d57"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>一个简单的属性列表类 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a2b962e470acd5e4f5c69232b0c5cdd18"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KVProperty::KVProperty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>属性表构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ab7a2ed9ecf029cf60e9403e5b34d5053"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KVProperty::~KVProperty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>属性表析构函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a2df711a6326ccf55831bd9624d159d57"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KVProperty::addProperty </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>keyword</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_k_v_value.html">KVValue</a> &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>增加属性行 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">keyword</td><td>属性名称 </td></tr>
    <tr><td class="paramname">value</td><td>属性值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>

</div>
</div>
<a class="anchor" id="a2d5407252192596dcf76e8b4c819ccd4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KVProperty::initWithFile </td>
          <td>(</td>
          <td class="paramtype">const string&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从配置文件初始化属性表 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">file</td><td>属性文件名 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a2da1520428e305fa4142943762c10263"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_k_v_value.html">KVValue</a> &amp; KVProperty::operator[] </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>keyword</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>[]运算符重载 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">keyword</td><td>属性名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回属性值 </dd></dl>

</div>
</div>
<a class="anchor" id="aba54fbf360de68a40d5f5d320cde7e5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KVProperty::saveAsFile </td>
          <td>(</td>
          <td class="paramtype">const string&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>保存属性表,此操作会重写并保存属性文件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>属性文件名 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>libemb/inc/<a class="el" href="_k_v_property_8h_source.html">KVProperty.h</a></li>
<li>libemb/src/KVProperty.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:38 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
